package 面向对象.实验六;

import java.util.TreeSet;

/**
 * @projectName: JAVA编程
 * @package: 面向对象.实验六
 * @className: test3
 * @author: hhy帅
 * @description: TODO
 * @date: 2021/11/7 22:31
 */
public class test3 {
    public static void main(String[] args) {
        TreeSet<Object> treeSet = new TreeSet<>();
        Book book1 = new Book("3","cc","ccc");
        Book book2 = new Book("1","aa","aaa");
        Book book3 = new Book("2","bb","bbb");
        treeSet.add(book1);
        treeSet.add(book2);
        treeSet.add(book3);
        System.out.println(treeSet);

    }
}
